package cn.tedu.lucky.draw.server.po;

import java.time.LocalDateTime;

//活动类
public class Activity {
    //活动ID
    private Long id;
    //活动名称
    private String name;
    //活动描述
    private String desciption;
    //活动图片
    private String img;
    //活动开始时间
    private LocalDateTime startTime;
    //活动结束时间
    private LocalDateTime endTime;
    //活动状态
    private int status;
    //活动创建时间
    private LocalDateTime createTime;
    //活动修改时间
    private LocalDateTime updateTime;
    //活动排序
    private Integer sort;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesciption() {
        return desciption;
    }

    public void setDesciption(String desciption) {
        this.desciption = desciption;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public LocalDateTime getStartTime() {
        return startTime;
    }

    public void setStartTime(LocalDateTime startTime) {
        this.startTime = startTime;
    }

    public LocalDateTime getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Activity() {
    }

    public Activity(Long id, String name, String desciption, String img, LocalDateTime startTime, LocalDateTime endTime, int status, LocalDateTime createTime, LocalDateTime updateTime, Integer sort) {
        this.id = id;
        this.name = name;
        this.desciption = desciption;
        this.img = img;
        this.startTime = startTime;
        this.endTime = endTime;
        this.status = status;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.sort = sort;
    }

    @Override
    public String toString() {
        return "Activity{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", desciption='" + desciption + '\'' +
                ", img='" + img + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", status=" + status +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", sort=" + sort +
                '}';
    }
}
